import React, { Component } from 'react';
import './MyTabbar.scss'

class MyTabbar extends Component {
    constructor(props) {
        super(props);
        this.state = {
            tabs: [
                { name: '店铺', pic: '' },
                { name: '分类', pic: '' },
                { name: '全部商品', pic: ''},
                { name: '购物车', pic: '' },
                { name: '个人中心', pic: '' },
            ]
        }
    }
    render() {
        return (
            <div className='tabbar'>
                <div className="tab">
                    {
                        this.state.tabs.map((item) => {
                            return (
                                <div className="name">{item.name}</div>
                            )
                        })
                    }
                </div>
            </div>
        );
    }
}

export default MyTabbar;